package com.entor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * springboot启动类
 * @author HQJ
 *
 */
@SpringBootApplication
@EnableJpaRepositories("com.entor.dao")//JPA扫描该包路径下的Repositorie
@EntityScan("com.entor.model")//扫描该路径下的实体，必须@Entity
public class Application {

	public static void main(String[] args) {
		
		SpringApplication.run(Application.class, args);

	}

}
